package com.huli.feign;

import com.huli.param.AppealParam;
import com.huli.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("server-property")
public interface PropertyClient {



    //查询所有物业的联系方式
    @GetMapping("/propertyCompany/selectAllPropertyPhone")
    Result selectAllPropertyPhone();

    //查询车库订单详情
    @GetMapping("/propertyCompany/selectCarportOrdersInfo")
    Result selectCarportOrdersInfo(@RequestParam int garageId);

    //查询车库所有已支付订单
    @GetMapping("/propertyCompany/selectAllPayOrders")
    Result selectAllPayOrders(@RequestParam int garageId);

    //生成申述表
    @PostMapping("/propertyCompany/createAppeal")
    void createAppeal(@SpringQueryMap AppealParam appealParam);
}
